#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
int main()
{
	int n;
	scanf("%d", &n);

	int i;
	int bat = n;
	for (i = 1; n >= 10; i = i * 10)
	{
		n = n / 10;
	}

	int j;
	int p;
	for (j = i; j > 0; j = j / 10)
	{
		p = bat / j;
		printf("%d ", p);
		bat = bat - p * j;
	}
	return 0;
}